import { createStore } from 'vuex'

export default createStore({
  state: {
    isMusicPlay: false, // 全局播放状态
    proHeaderClose: false, // 首页头部状态
  },
  mutations: {
    // 改变播放状态
    handleChangeIsMusicPlay(state, musicStatus){
      state.isMusicPlay = musicStatus;
    },
    // 去掉首页头部
    handleProHeaderClose(state, flag){
      state.proHeaderClose = flag
    }
  },
  actions: {
  },
  modules: {
  }
})
